import axios from 'axios'
export default function request(url:string,data:any={},method:string='GET') {
	if(method==='GET') {
		return axios({
			url: "http://cloud-music.pl-fe.cn"+url,
			method,
			params: data
		})
	}
	if(method==='POST') {
		return axios({
			url: "http://cloud-music.pl-fe.cn"+url,
			method,
			data,
		})
	}
}
